package com.chilli.cosima.utils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class WorldCountryUtils
{
	public static List<Area> areas;
	public static Map<String, List<Country>> countrys;

	private static WorldCountryUtils instance;

	@SuppressWarnings("unchecked")
	private WorldCountryUtils()
	{
		areas = new ArrayList<Area>();
		countrys = new HashMap<String, List<Country>>();

		areas.add(new Area("1", "亚洲(Asia)"));
		List asia = new ArrayList<Country>();
		asia.add(new Country(1, "中国(China)"));
		asia.add(new Country(2, "日本(Japan)"));
		asia.add(new Country(3, "印度(India)"));
		asia.add(new Country(4, "中国香港(HongKong China)"));
		asia.add(new Country(5, "菲律宾(Philipines)"));
		asia.add(new Country(6, "新加坡(Singapore)"));
		asia.add(new Country(7, "泰国(Thailand)"));
		asia.add(new Country(8, "越南(Vietnam)"));
		countrys.put("1", asia);

		areas.add(new Area("2", "欧洲(Europe)"));
		List europe = new ArrayList<String>();
		europe.add(new Country(1, "德国(Germany)"));
		europe.add(new Country(2, "西班牙(Spain)"));
		europe.add(new Country(3, "荷兰(Netherlands)"));
		europe.add(new Country(4, "比利时(Belgium)"));
		europe.add(new Country(5, "英国(United Kingdom)"));
		europe.add(new Country(6, "爱尔兰(Ireland)"));
		europe.add(new Country(7, "丹麦 (Denmark)"));
		europe.add(new Country(8, "挪威(Norway)"));
		europe.add(new Country(9, "瑞士(Switzerland)"));
		europe.add(new Country(10, "瑞典(Sweden)"));
		europe.add(new Country(11, "芬兰(Finnland)"));
		europe.add(new Country(12, "俄罗斯(Russia)"));
		europe.add(new Country(13, "保加利亚(Bulgaria)"));
		europe.add(new Country(14, "葡萄牙(Portugal)"));
		europe.add(new Country(15, "意大利(Italy)"));
		europe.add(new Country(16, "土耳其(Turkey)"));
		europe.add(new Country(17, "法国(France)"));
		europe.add(new Country(18, "卢森堡文(Luxemburg)"));
		europe.add(new Country(19, "安多拉(Andorra)"));
		europe.add(new Country(20, "罗马尼亚(Romania)"));
		europe.add(new Country(21, "波兰(Poland)"));
		europe.add(new Country(22, "乌克兰(Ukraine)"));
		countrys.put("2", europe);
		
		areas.add(new Area("3", "北美洲(North America)"));
		List notham = new ArrayList<Country>();
		notham.add(new Country(1, "美国(USA)"));
		notham.add(new Country(2, "加拿大(Canada)"));
		notham.add(new Country(3, "墨西哥(Mexico)"));
		notham.add(new Country(4, "古巴(Cuba)"));
		notham.add(new Country(5, "巴拿马(Panana)"));
		countrys.put("3", notham);
		
		areas.add(new Area("4", "南美洲(North America)"));
		List southam = new ArrayList<Country>();
		southam.add(new Country(1, "阿根廷(Argentina)"));
		southam.add(new Country(2, "巴西(Brasil)"));
		southam.add(new Country(3, "哥伦比亚(Colombbia)"));
		southam.add(new Country(4, "秘鲁(Peru)"));
		southam.add(new Country(5, "厄瓜多尔(Ecuader)"));
		southam.add(new Country(6, "委内瑞拉(Venezuela)"));
		countrys.put("4", notham);
		
		areas.add(new Area("5", "大洋洲(Oceania)"));
		List oceania = new ArrayList<Country>();
		oceania.add(new Country(1, "澳大利亚(Australia)"));
		oceania.add(new Country(2, "新西兰(New Zealand)"));
		countrys.put("5", oceania);
		
		areas.add(new Area("6", "非洲(Africa)"));
		List africa = new ArrayList<Country>();
		africa.add(new Country(1, "加蓬(Gabon)"));
		africa.add(new Country(2, "南非(South Africa)"));
		africa.add(new Country(2, "奈及利亚(Nigeria)"));
		africa.add(new Country(2, "赤道几内亚(Ecuatorial Guinea)"));
		africa.add(new Country(2, "摩洛哥(Morocco)"));
		africa.add(new Country(2, "沙特阿拉伯(Saudi Arabia)"));
		countrys.put("6", africa);

	}

	public static WorldCountryUtils getWorldCountryUtils()
	{
		if (null == instance)
		{
			instance = new WorldCountryUtils();
		}
		return instance;
	}
}